package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Objects;

/**
 * @ClassName: ProductCategroy
 * @Author: Kai
 * @DATE: 2022/1/7
 * @TIME: 下午 03:50
 */
public class ProductCategroy {
    private Long categroyId;
    private Long parentId;
    private Long sort;
    private String title;
    private Long categroy;
    private String createId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createDate;
    private String updateId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateDate;

    private Integer hits;//点击量、收藏量

    public ProductCategroy() {
    }

    public ProductCategroy(Long categroyId, Long parentId, Long sort, String title, Long categroy, String createId, String createDate, String updateId, String updateDate, Integer hits) {
        this.categroyId = categroyId;
        this.parentId = parentId;
        this.sort = sort;
        this.title = title;
        this.categroy = categroy;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.hits = hits;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Long getCategroyId() {
        return categroyId;
    }

    public void setCategroyId(Long categroyId) {
        this.categroyId = categroyId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getCategroy() {
        return categroy;
    }

    public void setCategroy(Long categroy) {
        this.categroy = categroy;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return "ProductCategroy{" +
                "categroyId=" + categroyId +
                ", parentId=" + parentId +
                ", sort=" + sort +
                ", title='" + title + '\'' +
                ", categroy=" + categroy +
                ", createId='" + createId + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateId='" + updateId + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", hits=" + hits +
                '}';
    }
}